//
//  CorpusModel.m
//  项目
//
//  Created by 关雷 on 15-1-3.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "CorpusModel.h"

@implementation CorpusModel
- (void)dealloc
{
    [_albumid release];
    [_title release];
    [_coverimg release];
    [_userinfo release];
  
    [super dealloc];
}
- (instancetype)initWithAlbumid:(NSString *)albumid title:(NSString *)title coverimg:(NSString *)coverimg userinfo:(NSDictionary *)userinfo finish:(NSInteger)finish
{
    self = [super init];
    if (self) {
        self.albumid = albumid;
        self.title = title;
        self.coverimg = coverimg;
        self.finish = finish;
        self.userinfo = [[NSDictionary alloc] initWithDictionary:userinfo];
        
    }
    return self;
}
+ (id)CorpusModelWithAlbumid:(NSString *)albumid title:(NSString *)title coverimg:(NSString *)coverimg userinfo:(NSDictionary *)userinfo finish:(int)finish
{
    CorpusModel * model = [[CorpusModel alloc] initWithAlbumid:albumid title:title coverimg:coverimg userinfo:userinfo finish:finish];
    return [model autorelease];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{

}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}
@end
